From: Ben Hutchings Date: Wed, 13 Apr 2016 20:48:06 +0000 (+0100) Subject: fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers X-Git-Tag: archive/raspbian/6.5.3-1+rpi1^2^2~27 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=564988a99dece4730c1755d333bcd6e69f8d7fce;p=linux.git fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers Bug-Debian: https://bugs.debian.org/819725 Forwarded: https://lore.kernel.org/all/20160517133631.GF7555@decadent.org.uk/ This helps initramfs builders and other tools to find the full dependencies of a module. Signed-off-by: Ben Hutchings [Lukas Wunner: Forward-ported to 4.11: drop parts applied upstream] Gbp-Pq: Topic bugfix/all Gbp-Pq: Name fs-add-module_softdep-declarations-for-hard-coded-cr.patch --- diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index efeb1a9d040..e89a27e62ef 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2550,7 +2550,7 @@ late_initcall(init_btrfs_fs); module_exit(exit_btrfs_fs) MODULE_LICENSE("GPL"); -MODULE_SOFTDEP("pre: crc32c"); +MODULE_SOFTDEP("pre: crypto-crc32c"); MODULE_SOFTDEP("pre: xxhash64"); MODULE_SOFTDEP("pre: sha256"); MODULE_SOFTDEP("pre: blake2b-256"); diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 77b4d9d2b21..c13d97491c3 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -7371,6 +7371,6 @@ static void __exit ext4_exit_fs(void) MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others"); MODULE_DESCRIPTION("Fourth Extended Filesystem"); MODULE_LICENSE("GPL"); -MODULE_SOFTDEP("pre: crc32c"); +MODULE_SOFTDEP("pre: crypto-crc32c"); module_init(ext4_init_fs) module_exit(ext4_exit_fs) diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 8ae419152ff..58efb30b9ca 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -3197,6 +3197,7 @@ static void __exit journal_exit(void) } MODULE_LICENSE("GPL"); +MODULE_SOFTDEP("pre: crypto-crc32c"); module_init(journal_init); module_exit(journal_exit); diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 7effd7db0b8..70bc5cd7198 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1595,5 +1595,8 @@ static void __exit exit_nfsd(void) MODULE_AUTHOR("Olaf Kirch "); MODULE_LICENSE("GPL"); +#ifdef CONFIG_NFSD_V4 +MODULE_SOFTDEP("pre: crypto-md5"); +#endif module_init(init_nfsd) module_exit(exit_nfsd)